.class Lcom/kuguo/ui/b;
.super Landroid/widget/BaseAdapter;


# instance fields
.field a:Ljava/util/List;

.field final synthetic b:Lcom/kuguo/ui/ImageGallery;


# direct methods
.method constructor <init>(Lcom/kuguo/ui/ImageGallery;)V
    .locals 1

    iput-object p1, p0, Lcom/kuguo/ui/b;->b:Lcom/kuguo/ui/ImageGallery;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/kuguo/ui/b;->a:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a()Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/kuguo/ui/b;->a:Ljava/util/List;

    return-object v0
.end method

.method public a(Ljava/util/List;)V
    .locals 0

    iput-object p1, p0, Lcom/kuguo/ui/b;->a:Ljava/util/List;

    invoke-virtual {p0}, Lcom/kuguo/ui/b;->notifyDataSetChanged()V

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/kuguo/ui/b;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/kuguo/ui/b;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    if-nez p2, :cond_0

    new-instance v1, Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/kuguo/ui/b;->b:Lcom/kuguo/ui/ImageGallery;

    invoke-virtual {v2}, Lcom/kuguo/ui/ImageGallery;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    move-object v2, v1

    :goto_0
    iget-object v1, p0, Lcom/kuguo/ui/b;->a:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/graphics/Bitmap;

    iget-object v3, p0, Lcom/kuguo/ui/b;->b:Lcom/kuguo/ui/ImageGallery;

    invoke-virtual {v3}, Lcom/kuguo/ui/ImageGallery;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3, v1}, Lcom/kuguo/c/d;->a(Landroid/content/Context;Landroid/graphics/Bitmap;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    move-object v0, v2

    check-cast v0, Landroid/widget/ImageView;

    move-object p0, v0

    invoke-virtual {p0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    return-object v2

    :cond_0
    move-object v2, p2

    goto :goto_0
.end method
